package com.example.mapper.appointment;


import com.example.model.entity.appointment.MedicalCard;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 操作medicalCard相关数据接口
*/
public interface MedicalCardMapper {

    /**
      * 新增
    */
    int insert(MedicalCard medicalCard);

    /**
      * 删除
    */
    int deleteById(Integer id);

    /**
      * 修改
    */
    int updateById(MedicalCard medicalCard);

    /**
      * 根据ID查询
    */
    MedicalCard selectById(Integer id);

    /**
      * 查询所有
    */
    List<MedicalCard> selectAll(MedicalCard medicalCard);

    @Select("select * from medicalcard where recordId = #{recordId}")
    MedicalCard selectByRecordId(Integer recordId);
    @Select("select * from medicalcard where medicalNum = #{medicalNum)}")
    MedicalCard selectByMedicalNum(String medicalNum);
}
